home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2000-08-07 | 1.2 KB | 48 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="1"
- "COUNT"="1"
- "UIPATH"="Program Options\Microsoft Office\MS Office 2000\Common
- "NAME"="URL Options"
- "VERSION"="1.07"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Office URL"
- "DESCRIPTION 1"="This plug-in can be used to configure the URL that is opened when you click the "Help" - "Office on the Web" link."
- "DESCRIPTION 2"="To restore the original URL, clear the fields."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"=" "
-
-
- sV1="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Common\Internet\OfficeOnTheWeb"
- sPCheck="HKCU\Software\Microsoft\Office\9.0\"
- Sub Plugin_Initialize
- if RegPathExists(sPCheck) then
- s=RegReadValue(sV1)
- Call SetUIElement(1,s)
- else
- Call Disable()
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
- if len(s)>0 then
- Call RegWriteValue(sV1,s,1)
- else
- s=RegReadValue(sV1)
- if IsEmpty(s)=false then
- Call RegDeleteValue(sV1)
- end if
- end if
-
- Call Logoff
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-